//
//  StoryModel.m
//  MyItem
//
//  Created by SoulWater on 16/1/4.
//  Copyright © 2016年 admin. All rights reserved.
//

#import "StoryModel.h"

@implementation StoryModel


-(void)setAttributes:(NSDictionary *)dataDic
{
    [super setAttributes:dataDic];
    
    NSArray *wareInfoList = dataDic[@"wareInfoList"];
    self.wareInfoList = wareInfoList;
    
    _wareArray = [NSMutableArray array];
    for (NSDictionary *dic in wareInfoList) {
        
       wareInfoModel *wareModel = [[wareInfoModel alloc]initWithDataDic:dic];
        
        [_wareArray addObject:wareModel];
    }
    
    NSArray *userInfoList = dataDic[@"userInfoList"];
    self.userInfoList = userInfoList;
    for (NSDictionary *dic in userInfoList) {
        
        self.userModel = [[userInfoModel alloc]initWithDataDic:dic];
    }
}

-(void)setWareInfoList:(NSArray *)wareInfoList
{
    if (_wareInfoList != wareInfoList) {
        
        _wareInfoList = wareInfoList;
        
        
    }
}
@end
